<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script src="js/mui.min.js"></script>
		<link href="css/mui.min.css" rel="stylesheet" />
		
	</head>

	<body> 
	<!-- mh 带返回箭头的标题 -->
	    <header class="mui-bar mui-bar-nav">
	    	<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	    	<h1 class="mui-title">欢迎您：<span id="username"></span></h1>
	    </header> 
		<script type="text/javascript">
			mui.init();
			 mui.plusReady(function(){
				 // 从storage本地缓存中获取对应的数据
				 
				 var userStr = plus.storage.getItem("user");
				var user = JSON.parse(userStr);
				 console.info(user.username);
				var u =document.getElementById("username");
				u.innerHTML=user.username;
			 });
		</script>
	</body>

</html>